/*class ListNode {
    int val;
    ListNode next = null;

    ListNode(int val) {
        this.val = val;
    }
}*/
class Solution1{
    public ListNode FindKthToTail(ListNode head,int k) {
        ListNode Slow=head;
        ListNode Fast=head;

        while(Fast!=null&&k!=0){
            Fast=Fast.next;
            k--;
        }

        if (Fast==null){ return null; }
        while(Fast!=null){
            Fast=Fast.next;
            Slow=Slow.next;
        }
        return Slow;
    }
}


public class Text2 {
}
